// import './assets/main.css'
import './assets/inconfont/iconfont.css'

import { createApp } from 'vue'
import { createPinia } from 'pinia'

import App from './App.vue'
import router from './router'
import 'element-plus/dist/index.css'
//导入 element-plus 图标
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import piniaPluginPersistedstate  from 'pinia-plugin-persistedstate'
import 'element-plus/dist/index.css'

const app = createApp(App)
const pinia = createPinia()
pinia.use(piniaPluginPersistedstate)
//以组件方式引入 图标
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}
app.use(router)
app.use(pinia)
app.mount('#app')
